package com.example.item;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "收藏")
public class Star {
    @Schema(description = "收藏编号")
    @TableId(type = IdType.AUTO)
    private Integer starId;
    @Schema(description = "收藏人类型（个人:2，单位:1）")
    private Integer starType;
    @Schema(description = "收藏人编号")
    private Integer collectorId;
    @Schema(description = "收藏页面类型（其他:0，商品:1）")
    private Integer commentPagetype;
    @Schema(description = "收藏的帖子")
    private Integer starPost;
    @Schema(description = "收藏状态（启动：0，禁用：1）")
    private Integer starStatus;
    @Schema(description = "收藏时间")
    @TableField(fill = FieldFill.INSERT)
    private Date starTime;
    @Schema(description = "是否删除（是:1，否:0）")
    @TableLogic(value = "0", delval = "1")
    @TableField(fill = FieldFill.INSERT)
    private Integer starIsdelete;
}
